.container {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.title {
  display: inline-block;
  width: 40vw;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.list-btn {
  font-size: 1.2rem;
  padding: .1rem;
  border-radius: .2rem;
  &:active {
    background-color: #efefef;
  }
}
.message-list {
  flex: 1;
  position: relative;
}
.message-list-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
  background-color: #f5f5f5;
}
.input-block {
  height: 4rem;
  border-top: 1px solid #ddd;
  flex-shrink: 0;
  padding: .6rem;
  box-sizing: border-box;
}
.input {
  position: relative;
  width: 100%;
  height: 2rem;
  input {
    display: block;
    width: 100%;
    height: 2rem;
    border: 1px solid #ddd;
    border-radius: .2rem;
    padding: 0 3rem 0 .4rem;
    box-sizing: border-box;
  }
}
.send {
  position: absolute;
  top: .2rem;
  right: .2rem;
  height: 1.6rem;
  border: 1px solid #ddd;
  padding: 0 .4rem;
  z-index: 1;
  font-size: .7rem;
}
.popup {
  width: 80vw;
}
.history {
  overflow: auto;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.history-header {
  height: 2rem;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 0 .6rem;
  font-size: .7rem;
  font-weight: bold;
  color: #333;
  border-bottom: 1px solid #ddd;
  flex-shrink: 0;
}
.close {
  font-size: 1rem;
  color: red;
  padding: .2rem;
  border-radius: .2rem;
  &:active {
    background-color: #efefef;
  }
}
.history-content {
  flex: 1;
  position: relative;
}
.history-content-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: auto;
}
.history-item {
  padding: .4rem .6rem;
  border-bottom: 1px solid #ddd;
  display: block;
  &:active {
    background-color: #efefef;
  }
  &.active {
    background-color: var(--adm-color-primary);
    .history-item-title {
      color: #fff;
    }
    .history-item-date {
      color: #fff;
    }
  }
}
.history-item-title {
  font-size: .8rem;
  line-height: 1.2rem;
  color: #555;
}
.history-item-date {
  font-size: .6rem;
  line-height: 1rem;
  color: #999;
}
.loading {
  padding: 1rem;
}
.message {
  padding: .6rem;
}
.item {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.item-tag {
  width: 1.6rem;
  height: 1.6rem;
  font-size: .8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  border-radius: 50%;
  background-color: var(--adm-color-primary);
  flex-shrink: 0;
  margin-right: .6rem;
}
.item-content {
  padding: .4rem;
  border: 1px solid #ddd;
  border-radius: .4rem;
  background-color: #fff;
  font-size: .7rem;
}
.item-icon {
  width: 1.6rem;
  height: 1.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: .6rem;
  img {
    width: 1.2rem;
  }
}
.answer-dot {
  height: 20px;
  &::after {
    content: '';
    display: inline-block;
    animation-name: dot;
    animation-duration: 2s;
    animation-iteration-count: infinite;
  }
}
@keyframes dot {
  0%   { content: '.' }
  20%  { content: '..' }
  40%  { content: '...' }
  60%  { content: '... .' }
  80%  { content: '... ..' }
  80%  { content: '... ...' }
}
